logoalt Hacker News

kh9000today at 6:27 AM2 repliesview on HN

It's a combinination of bit flags. The lowest bit controls whether segment heap is on or off. The 2nd lowest bit bit controls some additional optimizations that go along with it, something about multithreading. A value of 3 (both flags set) gives you identical behavior to what specifying <heapType>SegmentHeap</heapType> in your application manifest does.

Using the application manifest approach is the right way to ship software that opts into segment heap. The registry thing is just a convenience for local testing.


Replies

Melatonictoday at 8:01 AM

How often does software actually ship with the opt in for segment heap turned on though ?

Anyway to globally turn it on when a blacklist or denylist or whatever in case something individual acts up ?

lloydatkinsontoday at 8:46 AM

Would the (not Framework) .NET apps I work on benefit from this?

show 1 reply