gc_reason == GarbageCollectionReason::kMemoryPressure;We could also revisit whether we want to flush on memory pressure GCs. I guess it makes sense but I don't have a strong opinion here. I would keep it as-is for now until it becomes a problem.
Also afaiu we don't do this for JS but maybe we should.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
void Heap::EagerlyFreeExternalMemoryAndWasmCode(Does it still make sense to have array buffer sweeping and liftoff code flushing in the same method? I think these are 2 unrelated operations and now they even having differing conditions. I think it makes sense to split this to two separate methods.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Does it still make sense to have array buffer sweeping and liftoff code flushing in the same method? I think these are 2 unrelated operations and now they even having differing conditions. I think it makes sense to split this to two separate methods.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm
void CompleteArrayBufferSweeping(Heap* heap) {nit: This method could stay a free-standing method.
gc_reason == GarbageCollectionReason::kMemoryPressure;We could also revisit whether we want to flush on memory pressure GCs. I guess it makes sense but I don't have a strong opinion here. I would keep it as-is for now until it becomes a problem.
Also afaiu we don't do this for JS but maybe we should.
Acknowledged
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
Thanks for the reviews!
void CompleteArrayBufferSweeping(Heap* heap) {nit: This method could stay a free-standing method.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[heap] Limit Liftoff code flushing to last resort GCs
CollectAllAvailableGarbage() was previously always flushing all
Liftoff code. This also meant that code flushing was enabled when
taking heap snapshots.
This CL limits flushing to last resort and memory pressure GCs.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |