Would you review this CL?
I would like to minimize public inline methods of PartitionAlloc. So we can update PartitionAlloc easier (pdfium and so on... will not directly use inside-PartitionAlloc.)
PA_ALWAYS_INLINE size_t PartitionAddressSpace::GetZeroSegmentSize() {Temporaly move `GetZeroSegmentSize()` into `_internal.h`, because only partition_alloc_unittests invokes it. If some code outside of PA needs it, the method will be moved `partition_address_space.h` (and `PA_NOINLINE`?)
PA_NOINLINE PA_MALLOC_FN void* AllocInline(size_t requested_size,Temporaly I made `AllocInline` not an inline method. After I updated all callers outside of PartitionAlloc (i.e. they will use `Alloc` instead), I will make `AllocInline` inline (but private) again.
#include "partition_alloc/internal_allocator.h"The `nogncheck` will be fixed later. I'm planning to add `extreme_lightweight_detector_quarantine_support.{h,cc}` to `//base/allocator/partition_allocator/src/partition_alloc` and to make this code depend on the `support` library.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM
I am not sure how it will affect performance but I guess we can try.
// After make all callers depend on Free<flags>() instead ofnit: making
// #include "partition_alloc/internal/partition_root_internal.h"remove?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// After make all callers depend on Free<flags>() instead ofTakashi Sakamotonit: making
Done
// #include "partition_alloc/internal/partition_root_internal.h"Takashi Sakamotoremove?
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
glazunov@, would you review //components/gwp_asan/ changes?
I modified `#include`-s.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
thestig@, would you review //base/memory/safety_checks_unittest.cc change?
I need to add `1 line: #include "partition_alloc/internal/partition_root_internal.h"` to `safety_checks_unittest.cc`.
I will fix `// nogncheck` later.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
#include "partition_alloc/internal_allocator.h"The `nogncheck` will be fixed later. I'm planning to add `extreme_lightweight_detector_quarantine_support.{h,cc}` to `//base/allocator/partition_allocator/src/partition_alloc` and to make this code depend on the `support` library.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
#include "partition_alloc/internal/partition_root_internal.h" // nogncheckPresumably this will get fixed at some point, so external code, even if it's just a test, don't reach into internals?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |