• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
problem with operator new
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with operator new


  • Subject: problem with operator new
  • From: Chris Bergmann <email@hidden>
  • Date: Wed, 3 May 2006 18:29:11 +1000

Hi all,

 

I’m having a problem with an overridden global-scope operator new on the intel macs. It appears that a different link order is used on the intel macs (both natively and in rosetta) than what is used on the powerpc. The result of this is that the OS libraries are sometimes using our overridden operator new, causing a crash when the version of ‘new’ and ‘delete’ used don’t match.

 

I can almost work around this by making our operators hidden inlines, however in some cases the compiler chooses not to use inline versions, even with the always_inline attribute on (i assume the issue here is inlining depth.) This reverses the problem – the OS libraries are fine but sometimes our code will use the wrong operators.

 

I’ve also tried supplying both inline and out-of-line versions of the operators manually, however gcc doesn’t allow me to use visibility attributes with the out-of-line operators. This brings me back to the original problem.

 

To reiterate, i’m not seeing any evidence of this problem on the powerpc version of the app when running on a powerpc.

 

Any advice?

 

chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: problem with operator new
      • From: Marc Epard <email@hidden>
    • Re: problem with operator new
      • From: David Dunham <email@hidden>
References: 
 >gdb behaviour.. (From: Fons Rademakers <email@hidden>)
 >Re: gdb behaviour.. (From: David Dunham <email@hidden>)
 >Re: gdb behaviour.. (From: Fons Rademakers <email@hidden>)
 >Re: gdb behaviour.. (From: Paul Forgey <email@hidden>)
 >Re: gdb behaviour.. (From: Jan Hegewald <email@hidden>)

  • Prev by Date: Re: gdb behaviour..
  • Next by Date: Re: [Q] is there any good replacement for the Xcode?
  • Previous by thread: Re: gdb behaviour..
  • Next by thread: Re: problem with operator new
  • Index(es):
    • Date
    • Thread