Re: [opensource-dev] About memory management on macOS 10.12 (Sierra) potentially affecting all viewers

2016-07-08 Thread Cinder Roxley
On July 8, 2016 at 4:36:39 PM, Geenz Spad (ge...@exodusviewer.com ) wrote: To my knowledge, manual memory management is still supported under OS X 10.12, It would take an incredible amount of effort to deprecate since you’d need to fundamentally change NSObject,

Re: [opensource-dev] About memory management on macOS 10.12 (Sierra) potentially affecting all viewers

2016-07-08 Thread Geenz Spad
https://xkcd.com/386/ With that out of the way, autorelease pools don't have much to do with garbage collection - in fact the document that you've linked to specifically outlines the following with regards to autorelease pools and GC: > In a garbage-collected environment,

Re: [opensource-dev] About memory management on macOS 10.12 (Sierra) potentially affecting all viewers

2016-07-08 Thread Cinder Roxley
Since it’s clear you just want to argue and have no interest in understanding memory management, we’ll leave it at that then. I really doubt the other hundred people subscribed to this list are interested. --  Cinder Roxley Sent with Airmail On July 8, 2016 at 3:13:44 PM, Geir Nøklebye (ge

[opensource-dev] About memory management on macOS 10.12 (Sierra) potentially affecting all viewers

2016-07-08 Thread Geir Nøklebye
I cannot see there is anything “advanced” MRR (manual retain-release) going on in: NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init]; insert your viewer code here [pool release]; That can’t be handled with @autoreleasepool, if you even need to handle it outside the main thre

Re: [opensource-dev] About memory management on macOS 10.12 (Sierra) potentially affecting all viewers

2016-07-08 Thread Cinder Roxley
None of the examples you pasted have anything to do with Apple’s garbage collector, hun. They’re just examples of advanced MRR.  As I already stated, the viewer has never used Apple’s garbage collector. It uses a combination of autorelease pools and MRR which is perfectly fine to do, especially

[opensource-dev] About memory management on macOS 10.12 (Sierra) potentially affecting all viewers

2016-07-08 Thread Geir Nøklebye
> Cinder Roxley said: > The viewer has never used the garbage collector so it?s not an issue. Why is it that in llopenglview-objc.mm, as en example, we have statement like: NSOpenGLPixelFormat *pixelFormat = [[[NSOpenGLPixelFormat alloc] initWithAttributes:attrs] autorelease]; or - (void)d