Paul Driver
c284c800bf
Update arm_u state correctly in _ch_buck_trim
...
Previously, trimming the penultimate value from a hash bucket would
leave arm_u in an inconsistent state: mug_w would be pointing at
a key-value pair in a node, but arm_u.buc_o and arm_u.inx_w were
not updated to reflect this. Correspondingly, a rare edge case could
occur where said key-value pair would not be marked cold (due to
buc_o), which is a semantic error.
2017-11-15 10:00:11 -08:00
cgyarvin
e202076ef3
Merge pull request #896 from frodwith/hshfix
...
reset inx_w after finishing a bucket
2017-11-14 16:00:41 -08:00
C. Guy Yarvin
8d5ac23ab2
Minor debugging cleanups.
2017-11-14 15:24:42 -08:00
Paul Driver
b65b23cbcb
reset inx_w after finishing a bucket
2017-11-14 13:38:02 -08:00
C. Guy Yarvin
806ee33e5f
Actually works this time.
2017-11-13 23:18:18 -08:00
C. Guy Yarvin
3732697153
Hashtable merge passes basic live reclaim test.
2017-11-13 22:49:34 -08:00
C. Guy Yarvin
fc53b339a4
Working with some debug stuff.
2017-11-13 20:35:34 -08:00
C. Guy Yarvin
3d2ed11bb7
Merge branch 'retrofit-cash' into retrofit
2017-11-13 09:49:37 -08:00
C. Guy Yarvin
be936e5356
Remove unnecessary printf.
2017-11-13 09:49:24 -08:00
C. Guy Yarvin
0b31bad54e
Correct and disable memory tracking.
2017-11-13 09:06:10 -08:00
C. Guy Yarvin
25564c3f5f
Merge remote-tracking branch 'belisarius222/hash-cash-rebase' into retrofit-cash
2017-11-12 17:51:27 -08:00
C. Guy Yarvin
abb7f1d756
Various profiling and allocation improvements.
2017-11-12 16:15:09 -08:00
C. Guy Yarvin
8cbc503dae
Merge branch 'retrofit' of https://github.com/urbit/urbit into retrofit
2017-11-11 18:17:30 -08:00
C. Guy Yarvin
92d901a62e
Clear CPU-DEBUG for wallclock timing.
2017-11-11 18:16:32 -08:00
C. Guy Yarvin
4e3a730804
Grab big blocks of cells for the cell allocator.
2017-11-11 18:00:35 -08:00
C. Guy Yarvin
edf45e444e
Removed strange profiler-breaking code.
2017-11-10 22:50:04 -08:00
C. Guy Yarvin
36028424e6
Fix memory error.
2017-11-10 17:19:05 -08:00
C. Guy Yarvin
9117d1aabd
Suppress annoying messages in GC mode.
2017-11-10 17:15:26 -08:00
Ted Blackman
34ed9c4501
trim cache and retry allocation
2017-11-10 14:07:23 -08:00
Ted Blackman
ef44cba54f
_test_cache_replace_value()
2017-11-09 08:35:05 -08:00
Ted Blackman
e48b4a2a72
removed printfs
2017-11-09 08:35:05 -08:00
Paul Driver
f0c410855f
move arm in trim_node when not in bitmap
2017-11-09 08:35:05 -08:00
Ted Blackman
745cff44ad
WIP debugging; _ch_skip_slot() and tests
2017-11-09 08:35:05 -08:00
Ted Blackman
71dbece38b
ignore test_hash build
2017-11-09 08:35:05 -08:00
Paul Driver
fc64882cd2
the right mask probably helps
2017-11-09 08:35:05 -08:00
Paul Driver
186ad018e3
guard for non-presence of mug in _ch_trim_node
2017-11-09 08:35:05 -08:00
Paul Driver
75d06823f6
comments
2017-11-09 08:35:05 -08:00
Paul Driver
9892d1ebfd
stash - compiling
2017-11-09 08:35:05 -08:00
Paul Driver
0f5b97bf55
stash -- nearing initial hash-increment arm scheme
2017-11-09 08:35:05 -08:00
Paul Driver
495845a59f
stash
2017-11-09 08:35:05 -08:00
Paul Driver
f6d30a0700
stash
2017-11-09 08:35:05 -08:00
Paul Driver
311b0b00f8
stash
2017-11-09 08:35:05 -08:00
Ted Blackman
d5c7a458c1
WIP more debugging and printfs
2017-11-09 08:35:05 -08:00
Ted Blackman
67ac716a2c
WIP removed most printfs. Test runs without bail now, but dies at trim at 500
2017-11-09 08:35:05 -08:00
Ted Blackman
b0c265933f
fixed broken printf
2017-11-09 08:35:05 -08:00
Ted Blackman
56c5fba1e5
WIP fixed missed slot mutation. Now dies on testcase 256
2017-11-09 08:35:05 -08:00
Ted Blackman
447ae75d46
WIP debugging. Added node_deflate() function.
2017-11-09 08:35:05 -08:00
Ted Blackman
a9492c2eef
WIP debugging. Added print routines
2017-11-09 08:35:05 -08:00
Ted Blackman
3695abbb65
gdb script for testing
2017-11-09 08:35:05 -08:00
Ted Blackman
e16b8ee9dc
hashtable tests and associated makefile changes
2017-11-09 08:35:05 -08:00
Ted Blackman
c6b219ede5
WIP debugging 5:35 test case
2017-11-09 08:35:05 -08:00
Ted Blackman
5a899138dd
stop deleting the wrong noun. Still need to fix trim order
2017-11-09 08:35:05 -08:00
Ted Blackman
fef7e87df8
WIP allocates 1000, but not 1000000
2017-11-09 08:35:05 -08:00
Ted Blackman
87397ad7ea
very simple initial test passing
2017-11-09 08:35:05 -08:00
Ted Blackman
7a7cd53cb8
Fixed boot error
2017-11-09 08:35:05 -08:00
Ted Blackman
8977d08fcf
TODO
2017-11-09 08:35:05 -08:00
Ted Blackman
c3960af239
WIP caching hashtable. Compiles but bails on boot.
2017-11-09 08:35:05 -08:00
C. Guy Yarvin
057b866b17
Add terminal printers.
2017-11-08 14:37:39 -08:00
C. Guy Yarvin
90b58eb9ff
Correct memory leak code stack.
2017-11-08 14:20:22 -08:00
C. Guy Yarvin
7ddcc66903
Uniform memoization convention.
2017-11-08 14:19:48 -08:00