Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Side by Side Diff: src/platform-openbsd.cc

Issue 9353006: Increase size of small stacks from 32k to 64k to avoid hitting (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 }; 775 };
776 776
777 777
778 class SignalSender : public Thread { 778 class SignalSender : public Thread {
779 public: 779 public:
780 enum SleepInterval { 780 enum SleepInterval {
781 HALF_INTERVAL, 781 HALF_INTERVAL,
782 FULL_INTERVAL 782 FULL_INTERVAL
783 }; 783 };
784 784
785 static const int kSignalSenderStackSize = 32 * KB; 785 static const int kSignalSenderStackSize = 64 * KB;
786 786
787 explicit SignalSender(int interval) 787 explicit SignalSender(int interval)
788 : Thread(Thread::Options("SignalSender", kSignalSenderStackSize)), 788 : Thread(Thread::Options("SignalSender", kSignalSenderStackSize)),
789 vm_tgid_(getpid()), 789 vm_tgid_(getpid()),
790 interval_(interval) {} 790 interval_(interval) {}
791 791
792 static void InstallSignalHandler() { 792 static void InstallSignalHandler() {
793 struct sigaction sa; 793 struct sigaction sa;
794 sa.sa_sigaction = ProfilerSignalHandler; 794 sa.sa_sigaction = ProfilerSignalHandler;
795 sigemptyset(&sa.sa_mask); 795 sigemptyset(&sa.sa_mask);
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 953
954 954
955 void Sampler::Stop() { 955 void Sampler::Stop() {
956 ASSERT(IsActive()); 956 ASSERT(IsActive());
957 SignalSender::RemoveActiveSampler(this); 957 SignalSender::RemoveActiveSampler(this);
958 SetActive(false); 958 SetActive(false);
959 } 959 }
960 960
961 961
962 } } // namespace v8::internal 962 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698