-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsMemoryAllocationCallback
Limin Zhu edited this page Oct 9, 2015
·
1 revision
User implemented callback routine for memory allocation events
typedef bool (CALLBACK * JsMemoryAllocationCallback)(_In_opt_ void *callbackState, _In_ JsMemoryEventType allocationEvent, _In_ size_t allocationSize);
- callbackState: The state passed to JsSetRuntimeMemoryAllocationCallback
- allocationEvent: The type of type allocation event.
- allocationSize: The size of the allocation.
For the JsMemoryAllocate event, returning true allows the runtime to continue with the allocation. Returning false indicates the allocation request is rejected. The return value is ignored for other allocation events.
Use JsSetRuntimeMemoryAllocationCallback to register this callback.
- Architecture Overview
- Building ChakraCore
- ChakraCore Code Structure
- Contributor Guidance
- Engineering Notes
- Embedding ChakraCore
- Testing ChakraCore
- Getting ChakraCore binaries
- Label Glossary
- Resources
- Roadmap / Release Notes
Want to contribute to this Wiki? Fork it and send a pull request!