差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
appendix:garbagecollectorを止める方法 [2022/03/07 09:49] fumble |
appendix:garbagecollectorを止める方法 [2022/03/07 09:58] (現在) fumble |
||
---|---|---|---|
行 14: | 行 14: | ||
void 心眼() | void 心眼() | ||
{ | { | ||
- | auto module = LoadLibrary(lpszMonoParh); | + | auto module = ::LoadLibrary(lpszMonoParh); |
if (module != nullptr) | if (module != nullptr) | ||
{ | { | ||
- | auto getheapsize = (gcgetheapsize)GetProcAddress(module, | + | auto getheapsize = (gcgetheapsize)::GetProcAddress(module, |
auto heapsize = getheapsize(); | auto heapsize = getheapsize(); | ||
- | auto disable = (gcenabledisable)((__int64)GetProcAddress(module, | + | auto disable = (gcenabledisable)((__int64)::GetProcAddress(module, |
- | auto enable = (gcenabledisable)((__int64)GetProcAddress(module, | + | auto enable = (gcenabledisable)((__int64)::GetProcAddress(module, |
disable(); | disable(); | ||
enable(); | enable(); | ||
行 46: | 行 46: | ||
</ | </ | ||
実装順でそれぞれの関数にジャンプするようになっておるじゃろ。\\ | 実装順でそれぞれの関数にジャンプするようになっておるじゃろ。\\ | ||
- | しかもきれいに8バイトでパディングされて。\\ | + | きれいに8バイトでパディングされておるじゃろ。\\ |
mono_gc_get_heap_size\\ | mono_gc_get_heap_size\\ | ||
< | < | ||
行 59: | 行 59: | ||
00007FFAA93DB1A0 E9 9B C6 13 00 | 00007FFAA93DB1A0 E9 9B C6 13 00 | ||
</ | </ | ||
- | もうこれでわかるな?\\ | + | 今度こそこれでわかるな?\\ |
飛んだ先が正しいかもちゃんとステップインして確認するのじゃぞ?\\ | 飛んだ先が正しいかもちゃんとステップインして確認するのじゃぞ?\\ |