(cherry picked from commit ed2c2941a74ec720c5e4db3cb33367235e6c3655)
* Uses system API's which reduces the overhead instead of checking periodically for changes. * Will be used in the hotswap system to reload shared libraries on changes.