-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8329331: Intrinsify Unsafe::setMemory #18555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
3e2aab6
2334b03
6eebcbd
7c73856
74c47e2
6e283bc
44c24ec
b17a1f4
401a2a9
c5cb30c
6ee69c8
3aa60a4
8bed156
b025318
fd6f04f
f81aaa9
b0ac857
95230e2
41ffcc3
b99499a
89db3eb
970c575
6e731c8
405e4e0
95b0a34
44cc91b
824fb60
80b5a0c
856464e
116d7dd
113aa90
7a1d67e
dccf6b6
dd0094e
1961624
c129016
1122b50
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4009,13 +4009,8 @@ void StubGenerator::generate_initial_stubs() { | |
| create_control_words(); | ||
|
|
||
| // Initialize table for unsafe copy memeory check. | ||
| if (UnsafeCopyMemory::_table == nullptr) { | ||
| UnsafeCopyMemory::create_table(16); | ||
| } | ||
|
|
||
| // Initialize table for unsafe set memeory check. | ||
| if (UnsafeSetMemory::_table == nullptr) { | ||
| UnsafeSetMemory::create_table(22); | ||
| if (UnsafeMemoryAccess::_table == nullptr) { | ||
| UnsafeMemoryAccess::create_table(26); | ||
|
||
| } | ||
|
|
||
| // entry points that exist in all platforms Note: This is code | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs comment explaining 18 number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm... There was no comment explaining the 8 number :-). I added 10 to the table size because I knew I was going to add 7 places where a mark was required. I left 3 for safety.
The algorithm has since changed, so I changed this to:
UnsafeCopyMemory::create_table(8 + 4); // 8 for copyMemory; 4 for setMemoryI did a similar change to all other table creation numbers.