Skip to content

OpCache Windows bug fix #1536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed

OpCache Windows bug fix #1536

wants to merge 18 commits into from

Conversation

mattficken
Copy link
Contributor

Just by unlocking around Sleep() the OpenFileMapping loop will work. Holding the lock in that loop will not only block detach_segments() but will also block other PHPs from reattaching in accel_startup().

Checking the base address used when this issue occurs during some of my stress testing, most of the time the base address used is the first in vista_mapping_base_set.

This is the same/similar issue as the Apache2 issue described in the note for that loop. Unlocking around Sleep() fixes the majority of this issue.

@smalyshev smalyshev added the Bug label Sep 28, 2015
@@ -288,3 +288,4 @@ win32/*.positions
win32/ext
win32/phpts.def
win32/wsyslog.h
ext/opcache/shared_alloc_win32.c
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this .gitignore change isn't intentional here...?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No that is not an intentional change.

Please fix.

Thanks

-M


From: Bob Weinand notifications@github.com
Sent: Monday, October 5, 2015 4:11:07 PM
To: php/php-src
Cc: Matt Ficken (Insight Global)
Subject: Re: [php-src] OpCache Windows bug fix (#1536)

In .gitignorehttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fphp%2fphp-src%2fpull%2f1536%23discussion_r41209590&data=01%7c01%7cv-mafick%40microsoft.com%7c18eec26a3c5742057c8308d2cdda421e%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=ThT9uLdQWHq0vVYTF2YuihW6H95Nsigi0TIhSAhKo6E%3d:

@@ -288,3 +288,4 @@ win32/*.positions
win32/ext
win32/phpts.def
win32/wsyslog.h
+ext/opcache/shared_alloc_win32.c

I guess this .gitignore change isn't intentional here...?

Reply to this email directly or view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fphp%2fphp-src%2fpull%2f1536%2ffiles%23r41209590&data=01%7c01%7cv-mafick%40microsoft.com%7c18eec26a3c5742057c8308d2cdda421e%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=uIIXcgNhudUPdE6bWh8CZXTHVbT7Ej72lkLjBtdSryc%3d.

@weltling
Copy link
Contributor

weltling commented Dec 9, 2015

Looks like now with the file cache fallback implementation in 7.0, this ticket became obsolete. Probably should be just closed?

Thanks.

@mattficken
Copy link
Contributor Author

Yes.


From: Anatol Belski notifications@github.com
Sent: Wednesday, December 9, 2015 6:21:25 AM
To: php/php-src
Cc: Matt Ficken (Insight Global)
Subject: Re: [php-src] OpCache Windows bug fix (#1536)

Looks like now with the file cache fallback implementation in 7.0, this ticket became obsolete. Probably should be just closed?

Thanks.

Reply to this email directly or view it on GitHubhttps://github.com//pull/1536#issuecomment-163252843.

@php-pulls
Copy link

Comment on behalf of ab at php.net:

Obsolete with file cache fallback implementation in ffb5d0a

@php-pulls php-pulls closed this Dec 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants