Skip to content
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

proxy: Reuse the existing slot ID mapping after fork #120

Merged
merged 1 commit into from
Jan 29, 2018

Conversation

ueno
Copy link
Member

@ueno ueno commented Jan 16, 2018

While the proxy module reassigns slot IDs in C_Initialize(), some applications assume that valid slot IDs should never change across multiple calls to C_Initialize(). This patch mitigates this by preserving the slot IDs, if they are known to the proxy module.

Note that this change is experimental. @ansasaki, @nmav this is what I was talking yesterday.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 77.281% when pulling f6cbe4c on ueno:wip/dueno/reuse-slot-id into 50b752e on p11-glue:master.

@ueno ueno force-pushed the wip/dueno/reuse-slot-id branch from f6cbe4c to 88a9f67 Compare January 16, 2018 17:37
@coveralls
Copy link

coveralls commented Jan 17, 2018

Coverage Status

Coverage increased (+0.05%) to 77.298% when pulling 88a9f67 on ueno:wip/dueno/reuse-slot-id into 50b752e on p11-glue:master.

@ueno ueno force-pushed the wip/dueno/reuse-slot-id branch from 88a9f67 to f176677 Compare January 17, 2018 10:29
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 77.313% when pulling f176677 on ueno:wip/dueno/reuse-slot-id into 50b752e on p11-glue:master.

@ueno ueno force-pushed the wip/dueno/reuse-slot-id branch from f176677 to b42f775 Compare January 17, 2018 10:45
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 77.312% when pulling b42f775 on ueno:wip/dueno/reuse-slot-id into 50b752e on p11-glue:master.

@ueno ueno force-pushed the wip/dueno/reuse-slot-id branch from b42f775 to 8f75b97 Compare January 17, 2018 10:59
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 77.27% when pulling 8f75b97 on ueno:wip/dueno/reuse-slot-id into 50b752e on p11-glue:master.

@ueno ueno changed the title WIP: proxy: Reuse the existing slot ID mapping after fork proxy: Reuse the existing slot ID mapping after fork Jan 17, 2018
@ueno ueno force-pushed the wip/dueno/reuse-slot-id branch from 8f75b97 to 9401e55 Compare January 17, 2018 12:52
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 77.31% when pulling 9401e55 on ueno:wip/dueno/reuse-slot-id into 031d3c7 on p11-glue:master.

While the proxy module reassigns slot IDs in C_Initialize(), some
applications assume that valid slot IDs should never change across
multiple calls to C_Initialize().  This patch mitigates this by
preserving the slot IDs, if they are known to the proxy module.
@ueno ueno force-pushed the wip/dueno/reuse-slot-id branch from 9401e55 to fd7cd2a Compare January 17, 2018 14:16
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 77.31% when pulling fd7cd2a on ueno:wip/dueno/reuse-slot-id into 031d3c7 on p11-glue:master.

@ueno
Copy link
Member Author

ueno commented Jan 29, 2018

I talked with @rjrelyea about this and it seems that the remapping is really a responsibility of a module.

@ueno ueno merged commit 3eed501 into p11-glue:master Jan 29, 2018
@ueno ueno deleted the wip/dueno/reuse-slot-id branch February 27, 2018 15:52
@ueno ueno added this to the 0.23.10 milestone May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants