Commit Graph

1723 Commits

Author SHA1 Message Date
Matthew Flatt
064776348a fix ready-toplevel optimization
svn: r12905
2008-12-19 17:16:39 +00:00
Eli Barzilay
d1e5dd842e use symbols for printout of primitive types
svn: r12894
2008-12-19 01:44:08 +00:00
Matthew Flatt
af45c8ca57 fix O(n^2) behavior in GC accounting
svn: r12892
2008-12-18 21:15:34 +00:00
Matthew Flatt
2c95f77c31 ctype->layout in scheme/foreign; prototype Objective-C binding in ffi collection
svn: r12890
2008-12-18 20:05:21 +00:00
Eli Barzilay
6283205982 ctype-basetype now holds:
* a symbol naming the type for primitive types
* a list of ctypes for cstruct types
* another ctype for user-defined ctypes

svn: r12882
2008-12-18 06:48:10 +00:00
Eli Barzilay
c71889c705 minor changes to have foreign.c in sync with foreign.ssc
svn: r12881
2008-12-18 04:03:21 +00:00
Matthew Flatt
ab18970f67 fix ffi passing offset null pointer
svn: r12879
2008-12-17 20:44:28 +00:00
Matthew Flatt
1d85f9ff3c patch for better #includes in XPM src from Michal Vyskocil
svn: r12876
2008-12-17 13:05:35 +00:00
Matthew Flatt
3e12b87cd3 strip starter exe (for Unix) on install
svn: r12868
2008-12-16 16:08:02 +00:00
Matthew Flatt
3f9f30fd4a strip mac binaries on install
svn: r12867
2008-12-16 16:03:30 +00:00
Matthew Flatt
768577fcaa fix-cairo-bitmap-release
svn: r12865
2008-12-15 23:15:27 +00:00
Matthew Flatt
25b27a8b08 more memory-accounting repairs, so that sandbox tests now pass
svn: r12861
2008-12-15 21:15:24 +00:00
Matthew Flatt
1855d4fd85 fix a problem in blame-the-parent accounting
svn: r12858
2008-12-15 19:59:16 +00:00
Matthew Flatt
45e4684e4f memory accounting: blame the parent instead of the child
svn: r12853
2008-12-15 17:09:33 +00:00
Matthew Flatt
fd95ebfe59 allow GC of custodians that have a memory limit but no children
svn: r12850
2008-12-15 14:41:44 +00:00
Eli Barzilay
acf3324659 Welcome to a new PLT day.
svn: r12844
2008-12-14 08:50:19 +00:00
Matthew Flatt
cf8b75939b trim some fat from module-variable references
svn: r12833
2008-12-13 17:38:14 +00:00
Jon Rafkind
e268305837 typo - rename a variable
svn: r12821
2008-12-12 20:37:10 +00:00
Kevin Tew
3fc53848ce Force scheme_types not to grow after initialization
svn: r12819
2008-12-12 19:36:43 +00:00
Kevin Tew
51eb2a8257 refactored code out to mzrt_proc_first_thread_init
svn: r12818
2008-12-12 19:36:37 +00:00
Kevin Tew
c70abd63e5 fix race condition use of scheme_master_proc_thread in master_scheme_place
svn: r12817
2008-12-12 19:36:32 +00:00
Kevin Tew
e8aae67e82 Better places SIGWEGV debugging
svn: r12816
2008-12-12 19:36:26 +00:00
Kevin Tew
27a5a47700 added THREAD_LOCAL to Finalizations **save_fns_ptr
svn: r12815
2008-12-12 19:36:20 +00:00
Kevin Tew
eeb4f8e534 added integer support to deep_copy
svn: r12814
2008-12-12 19:36:15 +00:00
Kevin Tew
bd5c06750b [gc2] share the mark_table
svn: r12813
2008-12-12 19:36:10 +00:00
Kevin Tew
37f104ded0 Added declaration for GC_switch_in_master_gc
svn: r12812
2008-12-12 19:36:03 +00:00
Kevin Tew
388cbe136a Added asserts for debugging propagate_marks
svn: r12811
2008-12-12 19:35:58 +00:00
Kevin Tew
aea092de02 Added scheme chars to deep copy
svn: r12810
2008-12-12 19:35:53 +00:00
Kevin Tew
ae6d07d76a Disable collection on master GC for now
svn: r12809
2008-12-12 19:35:48 +00:00
Kevin Tew
17547b977f init global tables symbols and modpaths in master GC
svn: r12808
2008-12-12 19:35:42 +00:00
Kevin Tew
d29a6b4cec Places/3m symbols created in master GC and deep copy added
svn: r12807
2008-12-12 19:35:35 +00:00
Kevin Tew
653db9dcbe Added SIGSEGV diagnostics with 3m
svn: r12806
2008-12-12 19:35:29 +00:00
Kevin Tew
1af924d8de Save off and restore all THREAD_LOCALS when switching GCs
svn: r12805
2008-12-12 19:35:24 +00:00
Kevin Tew
4cc0633218 No need to check mark_stack on every push
svn: r12804
2008-12-12 19:35:19 +00:00
Kevin Tew
a50776a2e8 Add more dependencies to gc2/Makefile.in
svn: r12803
2008-12-12 19:35:13 +00:00
Kevin Tew
a0be9364bc Move creation of resolve_module_paths to master GC
svn: r12802
2008-12-12 19:35:07 +00:00
Kevin Tew
38682c8130 Modify mz_proc_threads to have a pt_mbox by default
svn: r12801
2008-12-12 19:35:00 +00:00
Kevin Tew
923d43001e Modified designate_modified to check master gc
svn: r12800
2008-12-12 19:34:55 +00:00
Kevin Tew
60b3591910 Added pt_mbox
svn: r12799
2008-12-12 19:34:49 +00:00
Kevin Tew
c50d7fed82 Add condition variable support to mzrt
svn: r12798
2008-12-12 19:34:44 +00:00
Kevin Tew
14e565b82b Added stub spawn_master_scheme_place
svn: r12797
2008-12-12 19:34:38 +00:00
Kevin Tew
131e996974 added cleanup for pagemaps
svn: r12796
2008-12-12 19:34:33 +00:00
Kevin Tew
32771932c9 Add make dependency for gc2/sighand.c
svn: r12795
2008-12-12 19:34:27 +00:00
Kevin Tew
51399481c4 Add support for creating a place with a module and a channel
svn: r12794
2008-12-12 19:34:22 +00:00
Kevin Tew
1f836aea24 Added GC_switch_out_master_gc and GC_construct_child_gc
svn: r12793
2008-12-12 19:34:17 +00:00
Eli Barzilay
e1d2145909 Welcome to a new PLT day.
svn: r12782
2008-12-11 21:07:40 +00:00
Matthew Flatt
d80ef6a301 fix incorrect by-hand xform annotation
svn: r12779
2008-12-11 19:35:01 +00:00
Matthew Flatt
990e0e209a more sgc repairs
svn: r12777
2008-12-11 18:27:18 +00:00
Matthew Flatt
ac63ab24da fix sgc
svn: r12776
2008-12-11 18:22:04 +00:00
Matthew Flatt
251d15f800 fix module->namespace on unexported syntax bindings
svn: r12774
2008-12-11 16:48:29 +00:00
Matthew Flatt
5eb22cfa8d add jit_bomulr_l for PPC
svn: r12753
2008-12-09 15:57:34 +00:00
Matthew Flatt
4d8469b6cf inline fixnum multiplication
svn: r12731
2008-12-08 13:36:24 +00:00
Matthew Flatt
bd48d376aa extra '((lambda' check in bytecode optimizer
svn: r12724
2008-12-07 23:15:28 +00:00
Matthew Flatt
014bd392da save a few instructions on mark-stack operations
svn: r12716
2008-12-06 17:31:18 +00:00
Eli Barzilay
bf8816007a Welcome to a new PLT day.
svn: r12715
2008-12-06 08:50:13 +00:00
Matthew Flatt
89d0801d7a change quote-syntax to include a certificate for the enclosing module, enable certificate checking of phase-1 bindings, and fix some other problems with certificates
svn: r12714
2008-12-05 22:45:04 +00:00
Matthew Flatt
6dabd5cb31 fix potential problem with checking accessible module-bound ids; avoid unnecessary pagemap update in GC
svn: r12702
2008-12-04 20:47:10 +00:00
Matthew Flatt
c333fa8fb5 fix problems with custodian boxes, especially for a box whose custodian is shut down via an ancestor custodian
svn: r12680
2008-12-02 19:51:01 +00:00
Kevin Tew
827bc8755b syntax error fix
svn: r12679
2008-12-02 18:45:59 +00:00
Kevin Tew
e90cee15e1 [gc2] Merged for loops in reset_gen1_pages_live_and_previous_sizes.
svn: r12678
2008-12-02 17:35:09 +00:00
Kevin Tew
9fdd717d48 Windows gc2/sighand.c, make code consise
svn: r12677
2008-12-02 17:32:28 +00:00
Matthew Flatt
de03ebd5f9 fix allocation size for single-instance message under Windows
svn: r12676
2008-12-02 16:01:13 +00:00
Matthew Flatt
3b89976e37 new Mac file-dialog support only for 10.5 and up
svn: r12652
2008-11-30 18:26:25 +00:00
Matthew Flatt
382a650b74 change another property to a method call
svn: r12646
2008-11-30 12:57:46 +00:00
Matthew Flatt
0f43e934a7 use method call instead of propert set on NSSavePanel
svn: r12645
2008-11-30 12:49:08 +00:00
Matthew Flatt
7f4ddbe5fa better file-extension support for Mac OS X put-file dialog
svn: r12638
2008-11-29 18:52:25 +00:00
Matthew Flatt
789e51897c consistently initialize libunwind local-address-space record
svn: r12637
2008-11-29 14:43:14 +00:00
Matthew Flatt
f922996173 try to avoid loop in getting x86_64 stack trace
svn: r12635
2008-11-29 14:18:00 +00:00
Matthew Flatt
695bb48100 fix JIT-inlined set-mc{ad}r! error reporting for PPC
svn: r12633
2008-11-28 15:36:37 +00:00
Matthew Flatt
4bfb12ff3c clean up to avoid some more compiler warnings
svn: r12632
2008-11-28 15:00:20 +00:00
Matthew Flatt
9da2a8f395 clean up to avoid some compiler warnings
svn: r12631
2008-11-28 14:58:28 +00:00
Matthew Flatt
84ffa34efd safer x86_64 backtrace
svn: r12630
2008-11-28 14:07:11 +00:00
Matthew Flatt
e0e672e9ca finish x86_64+JIT backtrace support
svn: r12624
2008-11-27 19:32:55 +00:00
Matthew Flatt
ca45e93763 support for stack traces under Linux x86_64, but the trace currently ends if working backward from JIT codes runs back into C-compiled code
svn: r12623
2008-11-27 16:14:31 +00:00
Matthew Flatt
8412e85b64 last bit of prep for x86_64 backtrace (might even work)
svn: r12622
2008-11-27 15:24:47 +00:00
Matthew Flatt
84f52ab704 link unwind into mzscheme, though it's not used, yet (another step toward x86_64 backtraces)
svn: r12620
2008-11-27 15:01:48 +00:00
Matthew Flatt
961d459a7d import a slice of libunwind, a step toward JIT backtraces for x86_64
svn: r12619
2008-11-27 14:52:09 +00:00
Eli Barzilay
b28bf7025d Welcome to a new PLT day.
svn: r12616
2008-11-27 04:00:59 +00:00
Matthew Flatt
792ab171b0 improved error backtraces for a few for JIT-inlined primitives, notably 'car' and 'cdr'
svn: r12607
2008-11-27 00:47:18 +00:00
Matthew Flatt
7022d3cf0a compile-context-preservation-enabled and slightly better stack traces for errors from JIT-inlined arithmetic
svn: r12602
2008-11-26 23:07:13 +00:00
Kevin Tew
91cdeb1b6e gc2/page_range.c indent cleanups
svn: r12599
2008-11-26 19:19:16 +00:00
Matthew Flatt
777d4d3f89 fix scrollbar reporting so that generic notifies/moves are ignored
svn: r12597
2008-11-26 16:02:40 +00:00
Matthew Flatt
bfdcd63257 toggle checkable items in popup menu (PR 9948)
svn: r12594
2008-11-25 23:05:18 +00:00
Matthew Flatt
ed536c002e scheme/package (and more int-def repairs)
svn: r12589
2008-11-25 17:58:21 +00:00
Matthew Flatt
5f3b7e5c6f another int-def binding simplification repair
svn: r12585
2008-11-25 03:08:08 +00:00
Eli Barzilay
e89c1a13cb Welcome to a new PLT day.
svn: r12583
2008-11-24 23:46:43 +00:00
Matthew Flatt
a0f91d905e revised internal-definitions context and a basic 'define-package' form
svn: r12579
2008-11-24 19:52:41 +00:00
Matthew Flatt
937fd18b2a change internal definition expansion, simplifying, fixing douplicate-id checking, and fixing binding resolution through extensible ribs
svn: r12563
2008-11-21 13:49:10 +00:00
Kevin Tew
bea2297421 Make GC callbacks members of NewGC
svn: r12549
2008-11-20 23:36:54 +00:00
Matthew Flatt
accd20a8ed remove debugging code
svn: r12545
2008-11-20 20:45:02 +00:00
Matthew Flatt
8ccce66af7 round out inlining and optimization of simple allocating primitives
svn: r12539
2008-11-20 13:50:22 +00:00
Matthew Flatt
93a13222dc Mac: change draw-point to use Quartz in smoothed mode
svn: r12538
2008-11-20 13:48:48 +00:00
Eli Barzilay
e4da627da9 Welcome to a new PLT day.
svn: r12468
2008-11-17 08:50:12 +00:00
Eli Barzilay
4e8d060873 update version numbers for the v4.1.3 release
svn: r12463
2008-11-16 19:37:47 +00:00
Matthew Flatt
015503bde3 trigger GCs based on number of allocated bitmaps under Windows, not just their sizes
svn: r12457
2008-11-15 16:51:58 +00:00
Matthew Flatt
c73bb99cf6 fix struct type immutable-field handling and checking of prop:procedure values (PR 9914 and more)
svn: r12454
2008-11-15 02:49:54 +00:00
Matthew Flatt
0f8e31d0a2 notes on JIT internals
svn: r12447
2008-11-14 14:33:23 +00:00
Eli Barzilay
dc3ad7e2f3 Welcome to a new PLT day.
svn: r12439
2008-11-14 02:53:18 +00:00
Matthew Flatt
13b4240cc0 another attempt to fix JIT inline 'list'
svn: r12437
2008-11-14 02:21:18 +00:00
Matthew Flatt
d4e4d14f10 fix JIT inline 'list' call, especially for PPC
svn: r12436
2008-11-14 01:53:40 +00:00
Matthew Flatt
59f3f19f84 make the optimizer slightly smarter, so that it can see through more patterns of nested let and letrec procedure bindings
svn: r12434
2008-11-14 00:48:54 +00:00
Matthew Flatt
4dd202b960 ,
svn: r12430
2008-11-13 21:11:48 +00:00
Matthew Flatt
bac4053c37 improved JIT inlining of 'list'
svn: r12428
2008-11-13 16:42:15 +00:00
Matthew Flatt
358bc2bbed refine jit-buffer limit check after inlining attempts
svn: r12425
2008-11-13 15:31:55 +00:00
Matthew Flatt
ba7ad5d2e6 add support to xform to output source line numbers
svn: r12419
2008-11-13 00:26:04 +00:00
Matthew Flatt
cc69a51813 inline 'list' and 'box' allocation
svn: r12417
2008-11-12 21:18:08 +00:00
Matthew Flatt
a9ec217902 remove compact from default build
svn: r12413
2008-11-12 17:19:27 +00:00
Matthew Flatt
59ec6aaa34 fix compact build
svn: r12407
2008-11-12 12:22:22 +00:00
Matthew Flatt
17901efeb4 fix call-with-continuation-barrier to work with multiple values
svn: r12406
2008-11-12 12:17:03 +00:00
Matthew Flatt
68a329430d adjust excessively pessimistic fix to letrec-bound variable propagation (because a test case caught the change, so maybe it matters)
svn: r12401
2008-11-12 03:10:00 +00:00
Matthew Flatt
4bb9ef582f inline vector allocation
svn: r12399
2008-11-12 02:09:43 +00:00
Matthew Flatt
8b6ccea76c restore GC_malloc_pair to 3m
svn: r12390
2008-11-11 22:23:30 +00:00
Matthew Flatt
74ac5ba272 fix bug in call-with-immediate-continuation-mark
svn: r12389
2008-11-11 21:56:41 +00:00
Matthew Flatt
cbb4985996 fix over-eager bytecode optimization of folding a reference to a letrec-bound identifier that is not yet ready
svn: r12385
2008-11-11 17:14:35 +00:00
Matthew Flatt
ad75c8aa58 fix problems in lex-rename simplification; other tiny improvements and doc repairs
svn: r12380
2008-11-10 22:50:54 +00:00
Matthew Flatt
a452fa0cef fix Windows out-of-memory dialog
svn: r12375
2008-11-10 15:50:48 +00:00
Matthew Flatt
8ec4e7f087 improve error message when an unbound id leads to a check for #%app or #%top (especially in the transformer environment)
svn: r12351
2008-11-08 15:23:43 +00:00
Eli Barzilay
e919a3339c Welcome to a new PLT day.
svn: r12340
2008-11-07 03:08:31 +00:00
Matthew Flatt
65eb7e7a18 call-with-immediate-continuation-mark
svn: r12339
2008-11-07 02:54:12 +00:00
Matthew Flatt
83e5376d62 more bzeros on ofm_malloc'd memory
svn: r12324
2008-11-05 23:35:36 +00:00
Matthew Flatt
2fc429a9d7 clear allocated freeblocks array
svn: r12313
2008-11-05 21:51:11 +00:00
Matthew Flatt
6ccb6a0137 adjust gc2 to access mzconfig.h header in build idrectory
svn: r12311
2008-11-05 21:31:32 +00:00
Kevin Tew
851ef83218 [gc2] x86_64 fix
svn: r12310
2008-11-05 21:10:50 +00:00
Kevin Tew
49fa1ab8ed Changed all mallocs to ofm_mallocs that report a nice error message and abort
svn: r12309
2008-11-05 21:10:44 +00:00
Kevin Tew
1f7e962fe6 GC global usage moved to GC_get_GC()
svn: r12308
2008-11-05 21:10:36 +00:00
Kevin Tew
83fbfd72cb Remove a couple more usages of the global GC
svn: r12307
2008-11-05 21:10:29 +00:00
Kevin Tew
4b29ac09c3 Reduced all THREAD local GC usage to NewGC *gc = GC; to be replaces with GC_get_GC()
svn: r12306
2008-11-05 21:10:21 +00:00
Kevin Tew
1d5d7ea18f Removed GC global and ACTUALLY_USED macros from allocators
svn: r12305
2008-11-05 21:10:13 +00:00
Kevin Tew
90f1c78c53 OS X fixes
svn: r12304
2008-11-05 21:10:04 +00:00
Kevin Tew
8220f558c3 More cleanup of the vm_* layer
svn: r12303
2008-11-05 21:09:58 +00:00
Kevin Tew
6fb0437222 Build on Windows fixes
svn: r12302
2008-11-05 21:09:50 +00:00
Kevin Tew
a714ab06f8 Moved protect_range to NewGC struct
svn: r12301
2008-11-05 21:09:43 +00:00
Kevin Tew
6c3555f2a2 Moved OTEntry to NewGC struct
svn: r12300
2008-11-05 21:09:36 +00:00
Kevin Tew
397e42ae06 Moved freeblock to NewGC struct
svn: r12299
2008-11-05 21:09:30 +00:00
Kevin Tew
af34446ec3 GC2 builds with and without blame the child, blame the child is more cleanly separated
svn: r12298
2008-11-05 21:09:24 +00:00
Kevin Tew
03548173f1 Allow compact GC to get a little further before SIGSEGV
svn: r12297
2008-11-05 21:09:17 +00:00
Kevin Tew
8983dd96f3 More pagemap caching
svn: r12296
2008-11-05 21:09:12 +00:00
Kevin Tew
7f2ee89d4f Attempt to cache mark_table use
svn: r12295
2008-11-05 21:09:06 +00:00
Kevin Tew
f8add652eb Improve fixup_table caching
svn: r12294
2008-11-05 21:09:00 +00:00
Kevin Tew
100770fef3 Attempt to recover speed loss with pagemaps
svn: r12293
2008-11-05 21:08:55 +00:00
Kevin Tew
f82068bce1 Whitespace blame_the_child.c
svn: r12292
2008-11-05 21:08:48 +00:00
Kevin Tew
5ad3d5466e Moved lots of blame_the_child flats to NewGC struct
svn: r12291
2008-11-05 21:08:43 +00:00
Kevin Tew
0366385251 eliminated a GC-> dereference in roots.c
svn: r12290
2008-11-05 21:08:36 +00:00
Kevin Tew
4f9e9a9c19 Fixed compiler warning
svn: r12289
2008-11-05 21:08:30 +00:00
Kevin Tew
4d0cdd5b9d Moved weak.c statics to NewGC struct
A little cleanup to help my static analysis tool

svn: r12288
2008-11-05 21:08:24 +00:00
Kevin Tew
b6add696af Moved static roots to NewGC
svn: r12287
2008-11-05 21:08:17 +00:00
Kevin Tew
5f10e2d80e Cleaned up newgc_parts and newgc_internal.h
svn: r12286
2008-11-05 21:08:11 +00:00
Kevin Tew
06f3c07d42 Move fnls statics to NewGC struct
svn: r12285
2008-11-05 21:08:02 +00:00
Kevin Tew
10a8d7ce76 Removed function local statics from garbage_collect
renamed some GC to gc

svn: r12284
2008-11-05 21:07:55 +00:00
Kevin Tew
da2d5987cb Refactored ifs to be contract checks at beginning of code. Reduces nesting.
svn: r12283
2008-11-05 21:07:49 +00:00