You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My application was intermittently overflowing the memory store.
What I discovered is that Policy_opa_malloc and Policy_opa_heap_ptr_get will automatically grow (add pages) the memory store, but _envMemory.WriteString() does not - for obvious reason.
So if FastEvaluate() is called when _dataHeapPtr is near the end of the memory store, it can overflow the store. I created a PR to simply check the memory capacity and grow as necessary.
I also noticed that the memory allocated for the initial GetData wasn't reused if different data was loaded.
The text was updated successfully, but these errors were encountered:
My application was intermittently overflowing the memory store.
What I discovered is that
Policy_opa_malloc
andPolicy_opa_heap_ptr_get
will automatically grow (add pages) the memory store, but_envMemory.WriteString()
does not - for obvious reason.So if
FastEvaluate()
is called when_dataHeapPtr
is near the end of the memory store, it can overflow the store. I created a PR to simply check the memory capacity and grow as necessary.I also noticed that the memory allocated for the initial GetData wasn't reused if different data was loaded.
The text was updated successfully, but these errors were encountered: