jvm-profiling-tools / honest-profiler

A sampling JVM profiler without the safepoint sample bias
https://github.com/RichardWarburton/honest-profiler/wiki
MIT License
1.25k stars 146 forks source link

Fix for issue #193 #204

Closed ikavalio closed 7 years ago

ikavalio commented 7 years ago

Hi,

This PR fixes issue #193 and makes libagent.so gcc-4.4 compatible again. I broke compatibility previously when I was developing concurrent map, since non-primitive types appeared in template arguments of std::atomic and it doesn't work with cstdatomic in g++ 4.4.

Also nullptr will be replaced with NULL in old gcc's, which is sufficient for honest-profiler (not 100% correct though).

Master passes both java & native tests for both 4.4 and 4.8 under Linux.

RichardWarburton commented 7 years ago

Thanks for your PR.