Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lkorinth
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
lkorinth
4y ago
CMS was removed in 14.
2.
▲
by
lkorinth
4y ago
You scan the live set (which most often is not dependent on the heap size). Bigger heap most often means better performance. Setting Xms to Xmx is good and valid if you know how much memory you need (which often is the case). If you pre
3.
▲
by
lkorinth
4y ago
If we have the code "if (x != null) { x.foo = 42; }", then it can rewritten as x.foo = 42 (with some extra magic in the runtime). If x is not null it will be faster if the cost of a branch is higher than zero. If x is null, the (s
4.
▲
by
lkorinth
4y ago
1) You catch the SEGV signal you get when failing to read the address, then it is complicated, but it is similar to the mechanism used to reach safe points (also does not use jumps). 2) If there are no nulls, it is faster not to do a branch