[ros-dev] [ros-diffs] [dgorbachev] 26482: Use allocation function instead of hack, save 12 bytes.

Alex Ionescu ionucu at videotron.ca
Tue Apr 24 06:36:07 CEST 2007


You are just getting lucky. Thomas is right, builtin_alloca does NOT
guarantee alignment.

-----Original Message-----
From: ros-dev-bounces at reactos.org [mailto:ros-dev-bounces at reactos.org] On
Behalf Of hto at mail.cnt.ru
Sent: April-24-07 12:19 AM
To: ReactOS Development List
Subject: Re: [ros-dev] [ros-diffs] [dgorbachev] 26482: Use allocation
function instead of hack, save 12 bytes.

Hi,

> This change is *wrong*. It won't guarantee the correct alignment!!!

@ExfAcquirePushLockShared at 4():
ntoskrnl/ex/pushlock.c:611
     push   %ebp
     mov    %esp,%ebp
     push   %edi
     push   %esi
     push   %ebx
     sub    $0x4c,%esp
     mov    %ecx,0xffffffec(%ebp)
ntoskrnl/ex/pushlock.c:612
     mov    (%ecx),%edi
ntoskrnl/ex/pushlock.c:615
     lea    0xf(%esp),%esi
->  and    $0xfffffff0,%esi
ntoskrnl/ex/pushlock.c:621
     ...
_______________________________________________
Ros-dev mailing list
Ros-dev at reactos.org
http://www.reactos.org/mailman/listinfo/ros-dev



More information about the Ros-dev mailing list