4 ms·
Non-executable heap and stack in Go 1.1 - nice!
by bishop_mandible 13y ago
Non-executable heap and stack in Go 1.1 - nice!
- gngeal 13y agoHuh, there goes my plan to write a dynamic assembler in Go...
- snaky 13y agoLike a DynASM?
- gngeal 13y agoWell, more like iburg, I guess.
- cthom06 13y agoYou can still use mmap/equivalent to allocate executable memory and package unsafe to use it; the difference is that the memory allocated normally by the runtime won't be executable. Or I missed the sarcasm.
- gngeal 13y agoWhat sarcasm? Well, if I could mmap it, that would be fine, although it would mean that I'd have to manage the memory for the machine code fragments by hand, as opposed to having them as part of GCd values.