1
0
Fork 0

image: Forget about the memory on image reloading to avoid free

This commit is contained in:
Holger Hans Peter Freyther 2011-09-17 20:13:25 +02:00
parent 0c889bfe97
commit 39eeb84682
1 changed files with 9 additions and 1 deletions

View File

@ -73,9 +73,17 @@ LogTarget subclass: LogTargetSyslog [
"Workaround Debian multiarch issues in finding libc"
DLD addLibrary: 'libm'.
ObjectMemory addDependent: self.
]
LogTargetSyslog class >> update: aSymbol []
LogTargetSyslog class >> update: aSymbol [
"We need to forget the C String we have allocated as we are running
in a new VM right now. Maybe we will be re-opened by someone."
aSymbol = #returnFromSnapshot ifTrue: [
Smalltalk at: #SYSLOG_NAME put: nil.
].
]
print: aMessage [
<category: 'output'>