David Lovemore
edef673fc0
Fixup warnings of unused variables. now compiles.
...
Copied from Perforce
Change: 178793
ServerID: perforce.ravenbrook.com
2012-07-31 15:00:21 +01:00
David Lovemore
07d320c057
Integrated from master to catchup some type fixes.
...
Copied from Perforce
Change: 178792
ServerID: perforce.ravenbrook.com
2012-07-31 14:52:44 +01:00
David Lovemore
7b4a2d88e2
Update the linux threading implementation, this means using the new posix style pthreads, which is much closer to the bsd implementation. prmcfr.h and prmcli.h have now been replaced by prmcix.h. this doesn't quite compile yet.
...
Copied from Perforce
Change: 178790
ServerID: perforce.ravenbrook.com
2012-07-31 14:43:34 +01:00
David Lovemore
20a444caee
Was using a %u for a size_t, naughty. fixed.
...
Copied from Perforce
Change: 178788
ServerID: perforce.ravenbrook.com
2012-07-31 14:21:41 +01:00
David Lovemore
c8875ecb80
Tidy up code from unused variable warnings.
...
Copied from Perforce
Change: 178787
ServerID: perforce.ravenbrook.com
2012-07-31 14:19:26 +01:00
Richard Brooksby
58bd26ec77
Adding w3i3mv to mps.c, allowing simple builds. this now works:
...
cl /Feamcss.exe /DCONFIG_PROD_MPS /DCONFIG_VAR_CI amcss.c fmtdy.c fmtdytst.c fmtno.c mps.c testlib.c
Copied from Perforce
Change: 178777
ServerID: perforce.ravenbrook.com
2012-07-30 16:48:02 +01:00
Richard Brooksby
9656bed733
Adding fri4gc platform to mps.c, allowing simple builds. this now works:
...
gcc -DCONFIG_PROD_MPS -DCONFIG_VAR_CI -o amcss amcss.c testlib.c fmtdy.c fmtdytst.c fmtno.c mps.c -lm -lpthread
Copied from Perforce
Change: 178776
ServerID: perforce.ravenbrook.com
2012-07-30 15:38:23 +01:00
Richard Brooksby
5b8faf430b
Fixing signal handling for freebsd 7. freebsd now signals sigsegv with code segv_accerr for memory protection faults. updated config.h.
...
Copied from Perforce
Change: 178775
ServerID: perforce.ravenbrook.com
2012-07-30 14:39:40 +01:00
Richard Brooksby
59a1b402d4
Minor fixups to printing and scanning formats to build cleanly on freebsd.
...
Copied from Perforce
Change: 178774
ServerID: perforce.ravenbrook.com
2012-07-30 14:25:27 +01:00
Richard Brooksby
2f8db83d05
Merging minor printf format fix from cet-transform branch.
...
Copied from Perforce
Change: 178773
ServerID: perforce.ravenbrook.com
2012-07-30 14:14:45 +01:00
David Lovemore
e3560446db
Update mv2test for 64-bit even though it is failing. varargs and alignment fixes.
...
Copied from Perforce
Change: 178561
ServerID: perforce.ravenbrook.com
2012-07-05 15:26:47 +01:00
Richard Brooksby
9e6f6ee4ac
Merging branch/2012-05-21/build-xci6ll -- build support for 64-bit mac os x.
...
Copied from Perforce
Change: 178560
ServerID: perforce.ravenbrook.com
2012-07-05 14:38:21 +01:00
David Lovemore
680502b068
Reversing unnecessary change before merge to master.
...
Copied from Perforce
Change: 178499
ServerID: perforce.ravenbrook.com
2012-06-18 16:33:42 +01:00
David Lovemore
e4199be89b
Corrected misaligned code.
...
Copied from Perforce
Change: 178498
ServerID: perforce.ravenbrook.com
2012-06-18 16:19:36 +01:00
David Lovemore
3b2f20e50c
Added comments for w3i6mv, and removed speculative xci6gc code, which is done properly on a different branch.
...
Copied from Perforce
Change: 178497
ServerID: perforce.ravenbrook.com
2012-06-18 16:19:02 +01:00
David Lovemore
670b309e06
Added copyright license and comments to assembler code for stack scanner.
...
Copied from Perforce
Change: 178496
ServerID: perforce.ravenbrook.com
2012-06-18 15:43:57 +01:00
David Lovemore
6035ec1c75
Cleanup test. i've worked around the bogosity of the test for mps_arena_has_addr rather than replace it with something more fancy.
...
Copied from Perforce
Change: 178495
ServerID: perforce.ravenbrook.com
2012-06-18 14:50:40 +01:00
David Lovemore
078e1e451c
Cleanup tests. these were mostly alignment issues. i have made them vary the alignments used according to the platform, using sizeof(void *) and mps_pf_align.
...
Copied from Perforce
Change: 178494
ServerID: perforce.ravenbrook.com
2012-06-18 14:47:53 +01:00
David Lovemore
0606c85b46
Build sacss and round up alignments in tests
...
Copied from Perforce
Change: 178322
ServerID: perforce.ravenbrook.com
2012-05-24 17:58:26 +01:00
Richard Brooksby
eb9e12cacb
All tests listed under the "all" target in gc.gmk are now building, and all but sacss do not find defects.
...
Copied from Perforce
Change: 178321
ServerID: perforce.ravenbrook.com
2012-05-24 17:39:13 +01:00
David Lovemore
1184e96675
Port instruction stepper to x64 with stub instruction decode
...
Copied from Perforce
Change: 178320
ServerID: perforce.ravenbrook.com
2012-05-24 17:13:04 +01:00
David Lovemore
0ea1ae3aba
Branch i6 files from i3 files.
...
Copied from Perforce
Change: 178317
ServerID: perforce.ravenbrook.com
2012-05-24 16:18:19 +01:00
Richard Brooksby
db14e7982d
Wrote stack scanner for xci6ll and other unix-like x86_64 platforms. more tests complete.
...
Copied from Perforce
Change: 178294
ServerID: perforce.ravenbrook.com
2012-05-23 15:56:52 +01:00
Richard Brooksby
ec55536827
Added single compilation unit version of mps library to allow global optimization and universal binary building. minor fixes to other sources to avoid clashing symbols.
...
Separated XCI3GC (gcc) from XCI3LL (clang) platforms, so that we can build both 32- and 64-bit binaries with clang.
Enabled universal (multi architecture) builds.
Copied from Perforce
Change: 178287
ServerID: perforce.ravenbrook.com
2012-05-22 21:27:55 +01:00
Richard Brooksby
e6eeb3651e
Several tests running on xci6ll target.
...
Copied from Perforce
Change: 178286
ServerID: perforce.ravenbrook.com
2012-05-22 20:02:28 +01:00
David Lovemore
96e81c42a5
Renamed priwlongest to priwword.
...
Copied from Perforce
Change: 178285
ServerID: perforce.ravenbrook.com
2012-05-22 17:47:04 +01:00
David Lovemore
32653c2d59
Remove obsolete comment
...
Copied from Perforce
Change: 178284
ServerID: perforce.ravenbrook.com
2012-05-22 16:39:21 +01:00
David Lovemore
8ceb0543dc
Add native thread scanning routines for windows x64
...
Copied from Perforce
Change: 178283
ServerID: perforce.ravenbrook.com
2012-05-22 16:38:55 +01:00
Richard Brooksby
af4b20b4e4
Disabling address probing test for 64-bit platforms until we design a better one.
...
Copied from Perforce
Change: 178282
ServerID: perforce.ravenbrook.com
2012-05-22 16:30:35 +01:00
David Lovemore
5f4bac1058
Split windows thread implementation into two files so that the non-architecture specific part can be shared.
...
Copied from Perforce
Change: 178281
ServerID: perforce.ravenbrook.com
2012-05-22 16:08:49 +01:00
David Lovemore
0d93c21a0e
Remove obsolete flag /coff from assembler options
...
Copied from Perforce
Change: 178262
ServerID: perforce.ravenbrook.com
2012-05-22 14:45:06 +01:00
David Lovemore
1854476965
Use .code to put code in executable segment.
...
Copied from Perforce
Change: 178247
ServerID: perforce.ravenbrook.com
2012-05-21 19:03:10 +01:00
Richard Brooksby
fc311e8edc
Basic build of mps library and mpmss test using xcode on xci6ll platform.
...
Copied from Perforce
Change: 178246
ServerID: perforce.ravenbrook.com
2012-05-21 18:58:57 +01:00
David Lovemore
eb84a7dd79
Added ssw3i6.asm for stack scanning
...
Copied from Perforce
Change: 178245
ServerID: perforce.ravenbrook.com
2012-05-21 18:34:33 +01:00
Richard Brooksby
b58cb9f89f
Adding empty xcode project for mps.
...
Copied from Perforce
Change: 178244
ServerID: perforce.ravenbrook.com
2012-05-21 18:09:46 +01:00
David Lovemore
a1e4e1e29c
Temporary fix for 64 bit windows: make allocations 8 byte aligned.
...
Copied from Perforce
Change: 178238
ServerID: perforce.ravenbrook.com
2012-05-21 17:40:07 +01:00
David Lovemore
5982f80df1
Use rnd_addr() where appropriate instead of rnd()
...
Copied from Perforce
Change: 178231
ServerID: perforce.ravenbrook.com
2012-05-21 16:07:13 +01:00
Richard Brooksby
7ecd65c946
Removing outdated assertion.
...
Copied from Perforce
Change: 178230
ServerID: perforce.ravenbrook.com
2012-05-21 15:45:26 +01:00
David Lovemore
60fac0d6b7
Round up sizes to a 16 byte alignment and extend fenceposts to 16 bytes in apss test
...
Copied from Perforce
Change: 178211
ServerID: perforce.ravenbrook.com
2012-05-17 17:08:52 +01:00
David Lovemore
5a906fa642
Remove bogus /debug option from lib command
...
Copied from Perforce
Change: 178202
ServerID: perforce.ravenbrook.com
2012-05-17 16:02:35 +01:00
David Lovemore
f013f5eb61
Use noop in insist macro.
...
Copied from Perforce
Change: 178201
ServerID: perforce.ravenbrook.com
2012-05-17 15:48:30 +01:00
Richard Brooksby
45c488d1c5
Adding missing cast to deliberately throw away bits in hash function, fixing a warning on w3i6mv.
...
Copied from Perforce
Change: 178200
ServerID: perforce.ravenbrook.com
2012-05-17 15:33:56 +01:00
Richard Brooksby
e76e783934
Fixing incorrect assumption that ulong was as big as size_t.
...
Copied from Perforce
Change: 178199
ServerID: perforce.ravenbrook.com
2012-05-17 15:33:10 +01:00
David Lovemore
8365fd368c
Removed some left over comments.
...
Copied from Perforce
Change: 178197
ServerID: perforce.ravenbrook.com
2012-05-17 15:26:16 +01:00
David Lovemore
dc29d0d755
Using mps_word_const instead of ull for proper fixes to constants
...
Copied from Perforce
Change: 178196
ServerID: perforce.ravenbrook.com
2012-05-17 15:18:50 +01:00
Richard Brooksby
512c8924a4
Added reference to design document.
...
Copied from Perforce
Change: 178195
ServerID: perforce.ravenbrook.com
2012-05-17 15:05:31 +01:00
Richard Brooksby
0f49047f5e
Increased alignments to work on 64-bit targets.
...
Copied from Perforce
Change: 178194
ServerID: perforce.ravenbrook.com
2012-05-17 15:05:23 +01:00
David Lovemore
fe9e093f48
Added mps_word_const and other fixes to get zcoll test to work
...
Copied from Perforce
Change: 178193
ServerID: perforce.ravenbrook.com
2012-05-17 14:55:18 +01:00
David Lovemore
4bb3e3365e
Added /debug and /pdb flags to make windows pdb debug files correctly.
...
Copied from Perforce
Change: 178191
ServerID: perforce.ravenbrook.com
2012-05-17 13:36:17 +01:00
David Lovemore
fa83c22bb3
Temporary fixes for 64-bit windows build
...
Copied from Perforce
Change: 178190
ServerID: perforce.ravenbrook.com
2012-05-17 13:19:45 +01:00