-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: evacuation #354
fix: evacuation #354
Conversation
Benchmark for 71a3bb1Click to view benchmark
|
Benchmark for e406465Click to view benchmark
|
Benchmark for f6e03bcClick to view benchmark
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #354 +/- ##
==========================================
+ Coverage 85.82% 86.04% +0.21%
==========================================
Files 108 108
Lines 23987 24341 +354
==========================================
+ Hits 20587 20944 +357
+ Misses 3400 3397 -3
|
Benchmark for 791ce33Click to view benchmark
|
Benchmark for 028b501Click to view benchmark
|
Benchmark for 8c9fd00Click to view benchmark
|
Benchmark for 2e2a41dClick to view benchmark
|
@@ -101,7 +101,7 @@ impl BigObjAllocator { | |||
pub fn return_chunk(&mut self, obj: *mut BigObj) { | |||
let _lock = self.lock.lock(); | |||
let size = unsafe { (*obj).size }; | |||
println!("ret_chunk: {:p}[size {}]", obj, size); | |||
// println!("ret_chunk: {:p}[size {}]", obj, size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could add a todo: use debug logger to print logs hence we don't need to comment it.
/// 所有被归还的Block都会被放到这个Vec里面 | ||
unavailable_blocks: Vec<*mut Block>, | ||
/// 所有被归还的Block都会被放到这个Vec里面 | ||
recycle_blocks: Vec<*mut Block>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the difference between unavailable_blocks
and recycle_blocks
? The comments are same.
Benchmark for 064194fClick to view benchmark
|
Benchmark for d7bcd24Click to view benchmark
|
d4bab47
to
f4a8fdd
Compare
Benchmark for d97db6cClick to view benchmark
|
fix multiple bugs in evacuation and
force gc trigger evacuation every time it collect in debug mode (so that we can find problems asap by ci test