- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Team.
I'm new to SGX.
I'm not that familiar with the memory management inside the enclave.
Since I use the C++11 feature (like unique_ptr) and class objects in my sample code, how should I free memory? For class objects, some other objects are embedded.
Sample code:
test.h
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello DylanWang,
You can use delete to free up memory from the class and unique_ptrs just as you would in non-enclave code.
Refer to the SGX SDK Developer Reference Guide for your OS, section C++ Language Support, for more information.
Sincerely,
Jesus G.
Intel Customer Support
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello DylanWang,
You can use delete to free up memory from the class and unique_ptrs just as you would in non-enclave code.
Refer to the SGX SDK Developer Reference Guide for your OS, section C++ Language Support, for more information.
Sincerely,
Jesus G.
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This thread has been marked as answered and Intel will no longer monitor this thread. If you want a response from Intel in a follow-up question, please open a new thread.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page