image: Forget about the memory on image reloading to avoid free
This commit is contained in:
parent
0c889bfe97
commit
39eeb84682
10
LogSyslog.st
10
LogSyslog.st
|
@ -73,9 +73,17 @@ LogTarget subclass: LogTargetSyslog [
|
||||||
|
|
||||||
"Workaround Debian multiarch issues in finding libc"
|
"Workaround Debian multiarch issues in finding libc"
|
||||||
DLD addLibrary: 'libm'.
|
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 [
|
print: aMessage [
|
||||||
<category: 'output'>
|
<category: 'output'>
|
||||||
|
|
Reference in New Issue