gcnew : alignment issues?

This is a discussion on gcnew : alignment issues? within the C++ Programming forums, part of the General Programming Boards category; Do i have to care for alignment matters if I call gcnew from two different threads??...

  1. #1
    Alessio Stella
    Join Date
    May 2008
    Location
    Italy, Bologna
    Posts
    251

    gcnew : alignment issues?

    Do i have to care for alignment matters if I call gcnew from two different threads??

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Are you talking about managed C++? If so, the same rules apply as for normal new/malloc - it is only guaranteed to align to a boundary that is suitable for the datatype with the largest alignment natively supported by the compiler.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help is welcome.
    By bradszy in forum C++ Programming
    Replies: 24
    Last Post: 01-23-2008, 05:26 PM
  2. Dynamic struct alignment?
    By matthew180 in forum C Programming
    Replies: 7
    Last Post: 06-15-2007, 09:34 AM
  3. Replies: 28
    Last Post: 07-17-2006, 12:35 AM
  4. Ok, I'm dumb, byte alignment for the third time
    By Shadow12345 in forum C++ Programming
    Replies: 2
    Last Post: 12-30-2002, 06:19 PM
  5. trouble with printf alignment
    By hyaline in forum C Programming
    Replies: 5
    Last Post: 09-22-2001, 02:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21