[sr #109665] Memory Leak using @synchronized on Windows

William Everett <[email protected]>
Newsgroups gmane.comp.lib.gnustep.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/support/?109665>

                 Summary: Memory Leak using @synchronized on Windows
                 Project: GNUstep
            Submitted by: williameverett
            Submitted on: Fri 29 Mar 2019 08:07:45 PM UTC
                Category: Foundation
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

We are seeing a memory leak when using the @synchronized directive on
Windows.

The following code run on a loop will steadily leak memory:

		NSMutableArray *testArray = [[NSMutableArray alloc] init];
		@synchronized(testArray) {
				[testArray addObject:@"foooooo"];
		}
		[testArray release];

If you comment out the synchronized part, there is no leak.

This is possibly related to bug #29338: Crash using @synchronized on Windows





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?109665>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.