-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add attribute noinline to OPENSSL_malloc (#140)
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/crypto/mem.c b/crypto/mem.c | ||
index 7e58609c0..b92a0e555 100644 | ||
--- a/crypto/mem.c | ||
+++ b/crypto/mem.c | ||
@@ -187,6 +187,7 @@ static const uint8_t kBoringSSLBinaryTag[18] = { | ||
0, | ||
}; | ||
|
||
+__attribute__((noinline)) | ||
void *OPENSSL_malloc(size_t size) { | ||
if (malloc_impl != NULL) { | ||
assert(OPENSSL_memory_alloc == NULL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters