Skip to content
Permalink
Browse files
8186780: clang fastdebug assertion failure in os_linux_x86:os::verify…
…_stack_alignment()

Reviewed-by: jiangli
  • Loading branch information
Martin Buchholz committed Mar 31, 2020
1 parent 8cb3cc0 commit 6d44ff7d93400309bbf9150365cac0cd1bed2d62
Showing 1 changed file with 1 addition and 6 deletions.
@@ -98,13 +98,8 @@ address os::current_stack_pointer() {
void *esp;
__asm__("mov %%" SPELL_REG_SP ", %0":"=r"(esp));
return (address) ((char*)esp + sizeof(long)*2);
#elif defined(__clang__)
void* esp;
__asm__ __volatile__ ("mov %%" SPELL_REG_SP ", %0":"=r"(esp):);
return (address) esp;
#else
register void *esp __asm__ (SPELL_REG_SP);
return (address) esp;
return (address)__builtin_frame_address(0);
#endif
}

0 comments on commit 6d44ff7

Please sign in to comment.